const mongoose = require('mongoose')
const Schema = mongoose.Schema

const phoneSchema = new Schema({
    skuid: {
        type: Number,
    },
    brand: {
        type: String,
    },
    price: {
        type: Number,
    },
    shopname: {
        type: String,
    },
    jixing: {
        type: String,
    },
    system: {
        type: String,
    },
    cpu: {
        type: String
    },
    rearcamera: {
        type: String,
    },
    isYuShou: {
        type: Boolean,
    },
    skuname: {
        type: String,
    },
    colorSize: {
        type: Array,
    },
    imageAndVudeiJson: {
        type: Array,
    },
    imageList: {
        type: Array
    },
    product_info: {
        type: Array,
    },
    proRam: {
        type: Number,
    },
    proRom: {
        type: Number,
    },
    ptable: {
        type: Array,
    },
    screen: {
        type: Number,
    },
    ostime: {
        type: Number,
    },
    comment: {
        type: Array,
    },
    commentcontent: {
        type: Array,
    },
    packItems: {
        type: String,
    },
    logourl: {
        type: String,
    }

})

let phoneModel = mongoose.model('products', phoneSchema)
module.exports = phoneModel